<h3>글 수정하기</h3>

<% form_for(:article, :url => {:action => 'update', :id => @article}) do |f| %>
<p>제목:<br/><%= f.text_field("title", :size => 40) %></p>
<p>카테고리:<br/><%= f.select("category_id", 
				           @categories.map{|c| [c.name, c.id]}) %></p>
<p>태그:<br/><%= f.text_field("tag_list", :size => 25) %></p>
<p>내용:<br/><%= f.text_area("body", :size => "40x20") %></p>				
<p><%= submit_tag "입력" %></p>
<% end %>

<%= link_to '돌아가기', :action => 'list' %>